<template>
    <div class="goodsdesc-container">
        <h3>{{info.title}}</h3>

        <hr>

        <div class="content" v-html="info.content"></div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            info:{}
        }
    },
    created(){
        this.getGoodsDesc();
    },
    methods:{
        getGoodsDesc(){
            /* this.$http.get('/'+this.$route.params.id).then(result => {
                if(result.body.status === 0){
                    this.info = result.body.message[0];
                }
            }) */

            this.info = {title:"春宵一刻值千金",content:"这样突如其来的表白你说哪个女生能顶得住啊在恋爱中，<img src='/src/images/1.jpg'></img>光是变着法子发射爱心还不够求关注求抱抱也一个都不能少"}
        }
    }
}
</script>

<style lang="scss">
.goodsdesc-container{
    padding: 4px;
    h3{
        font-size: 16px;
        color: #226aff;
        text-align: center;
        margin: 15px 0;
    }
    .content{
        img{
            width: 100%;
        }
    }
}
</style>